<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title>确认信息</title>
	<script src="/static/mobile/js/mui.min.js"></script>
	<link href="/static/mobile/css/mui.min.css" rel="stylesheet"/>
	<link rel="stylesheet" type="text/css" href="/static/mobile/css/basic.css"/>
	<link rel="stylesheet" type="text/css" href="/static/mobile/css/pay_record.css"/>
	<script type="text/javascript" src="/static/mobile/js/jquery.js"></script>
	<script type="text/javascript" charset="utf-8">
        mui.init();
	</script>
</head>
<body>
<div class="sectionx">
	<header class="mui-bar mui-bar-nav" >
		<a class="mui-icon mui-icon-left-nav mui-pull-left" href="javascript:history.back(-1)" style="color: #4E4E4E;"></a>
		<h1 class="mui-title">确认信息</h1>
		<!--<a class="mui-icon mui-icon  mui-pull-right right1" href="pay_record.html" style="color: #4E4E4E;font-size: 0.8rem;padding-top: 18px;">充值记录</a>-->
	</header>
</div>
<div class="section2 mui-clearfix">
	<ul>

		<li style=' width:20%'>会员姓名</li>
		<li style=' width:20%'>会员手机号</li>
		<li style=' width:20%'>升级级别</li>
		<li style=' width:20%'>升级金额</li>
		<li style=' width:20%'>操作</li>
	</ul>
</div>
<div class="section3 mui-clearfix">
	{volist name="lists" id="vo"  }
	<ul class="mui-clearfix">
		<li class="select" style=' width:20%'>{$vo.username}</li>
		<li class="select" style=' width:20%'>{$vo.mobile}</li>
		<li style=' width:20%'>{$key+1}</li>
		<li style=' width:20%'>{$vo.num}</li>
<!--		<li style=' width:25%'><a href="{:url('user/set/tuandui',array('id'=>$vo.id))}">下级</a></li>-->
		<li style='width:20%; padding: 6px 0px;'>
			{if $vo.is_ok==1}
			确认成功
			{else/}
			<button  class="layui-btn" id="submit_font" onclick="return commints('{$vo.bid}');"  style="padding: 4px 12px;color: #fff;background: red;border-color: red" >确认收款</button>
			{/if}
		</li>
	</ul>
	{/volist}
</div>

{$page|raw}
</body>
<script type="text/javascript" >
    mui('body').on( 'tap' , 'a' , function(){
        document.location.href=this.href;
    })
</script>
<script src="/static/plugins/layui/layui.js"></script>
<script>
    function commints(id){
        $.ajax({
            type : "POST",  //请求方式
            async:false,
            url : "{:url('collection_ok')}",  //请求路径
            dataType:"html",
            data :'id='+id,
            beforeSend:function()
            {   //触发ajax请求开始时执行
                $('#submit_font').text('确认中...');
                $('.layui-btn').attr('onclick','javascript:void();');//改变提交按钮上的文字并将按钮设置为不可点击
            },
            success : function(msg) {  //异步请求成功执行的回调函数
                var jsonParseJson=JSON.parse(msg);
                if(jsonParseJson['success']==1){
                    layer.msg(jsonParseJson['msg'],{time:1000,icon:1},function(){
                        location.href = "{:url('collection')}";
                    });
                }else{
                    layer.msg(jsonParseJson['msg'],{time:1000,icon:2});
                }

            }
        });
    }
    layui.use(['form', 'layer'], function () {

    })
</script>


</html>